home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
cutf
/
asm
/
cutfl2.hd6
< prev
next >
Wrap
Text File
|
1993-07-08
|
5KB
|
407 lines
ds_name db 'MOZCF\CUTFL',0
; out 400 dd f_name1
; out 500 dw kugiri.no
; in 502 dd f_size
; out 404 dd f_name2
; out 408 dd f_namef
look_me:
call sub_esi
dd 0,0
dw 1,0 ; wind need
dw 649,379,0,50 ; sz_x sz_y off x off y
dw 0,0 ; waku iro meniro
dw 0,0
paint_wd:
SET_P ndshok
SET_P ndcutf
SET_P ndera
SET_P ndsaki
SET_P ndcsize
mov ax,ds
mov es,ax
mov ah,0Ch
mov dh,4
mov dl,4
call MOUSE
call yobu
jmp pp_stat
re_paint:
be_called:
mouse_in:
ret
pp_stat:
call filein
call fn_chk
call w_fsz
call get_fn
call sakichk
call sizechk
call w_fcs
call erabuchk
call cutf
jmp pp_stat
filein:
call f_name1
KAKU 400,edi
CALL_P ndshok
YOMU eax,502
call f_size
mov [edi],eax
ret
w_fsz:
call f_size
mov eax,[edi]
mov edx,0
mov ebx,1000
div ebx
call mozi_fsize
add edi,14
call stom_6
MOZI mozi_fsize
ret
w_fcs:
BOX box_f3,1
YOMU eax,506
mov edx,0
mov ebx,1000
div ebx
call mozi_fcs
add edi,17
call stom_3
MOZI mozi_fcs
ret
get_fn:
call f_name1 ;edi
mov edx,edi
get_fn0:
mov al,[edx]
inc edx
cmp al,0 ; shippo
jne get_fn0
get_fn1:
dec edx
mov al,[edx]
cmp al,'\' ; dir search
jne get_fn1
call f_namef
get_fn2:
mov al,[edx]
mov [edi],al
inc edx
inc edi
cmp al,'.' ; kakchoshi tuki
je get_fn3
cmp al,0
jne get_fn2
dec edi
mov al,'.'
mov [edi],al
inc edi
get_fn3:
mov al,[edx] ; kakchoshi check
cmp al,'$'
je get_fn4
mov al,'$'
mov [edi],al
inc edi
mov al,'0'
mov [edi],al
inc edi
mov [edi],al
inc edi
mov al,0
mov [edi],al
ret
get_fn4:
mov [edi],al ; $ tuki
inc edx
inc edi
mov al,[edx]
inc al
mov [edi],al
mov al,'0'
inc edi
mov [edi],al
inc edi
mov al,0
mov [edi],al
ret
sakichk:
call f_name1
KAKU 400,edi
call f_name2
KAKU 404,edi
call f_namef
KAKU 408,edi
CALL_P ndsaki
call fn_chk1
ret
sizechk:
CALL_P ndcsize
ret
erabuchk:
mov ax,1
KAKU 500,ax
CALL_P ndera
ret
fn_chk:
BOX box_f1,1 ; file nameを表示
call f_name1
mov edx,edi
call mozi_oldf
add edi,14
fn0:
mov al,[edx]
mov [edi],al
inc edx
inc edi
cmp al,0
jne fn0
MOZI mozi_oldf
MOZI mozi_holdf
ret
fn_chk1:
BOX box_f2,1
call f_name2
mov edx,edi
call mozi_newf
add edi,14
fn12:
mov al,[edx]
mov [edi],al
inc edx
inc edi
cmp al,0
jne fn12
MOZI mozi_newf
MOZI mozi_hnewf
ret
cutf:
call f_name1
KAKU 400,edi
call f_name2
KAKU 404,edi
call f_size
mov eax,[edi]
KAKU 502,eax
CALL_P ndcutf
ret
sdt_name:
call sub_edx
db 'CUTF\CUTF.DEF',0
yobu:
call sdt_name
RAM1 edi
add edi,255000
M_LOAD
p_call:
M_P_CALL
p_set:
M_P_SET
;-----------------------------------------------------------
f_size:
call sub_edi
dd 0
f_name1:
call sub_edi
db 70 dup(0)
f_name2:
call sub_edi
db 70 dup(0)
f_namef:
call sub_edi
db 30 dup(0)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ndshok:
call sub_edi
dw ?
db 'CFSHO',0
ndera:
call sub_edi
dw ?
db 'ERACHK',0
ndsaki:
call sub_edi
dw ?
db 'SAKICK',0
ndcsize:
call sub_edi
dw ?
db 'CSIZE',0
ndcutf:
call sub_edi
dw ?
db 'CUTFM',0
box_f1:
call sub_edi
dw 1,500,30,100,295,0,0,15,6,1
box_f2:
call sub_edi
dw 1,500,30,100,345,0,0,15,6,1
box_f3:
call sub_edi
dw 1,50,28,175,346,0,0,6,6,1
mozi_oldf:
call sub_edi
dw 1,15,250,300,0,0,1
db 70 dup(0)
dw 0,0
mozi_newf:
call sub_edi
dw 1,15,250,350,0,0,1
db 70 dup(0)
dw 0,0
mozi_holdf:
call sub_edi
dw 1,7,110,300,0,0,1
db ' (元)',0
dw 0,0
mozi_hnewf:
call sub_edi
dw 1,7,110,350,0,0,1
db '(分割)',0
dw 0,0
mozi_fsize:
call sub_edi
dw 1,15,170,300,0,0,1
db '000000',0
dw 0,0
mozi_fcs:
call sub_edi
dw 1,15,170,350,0,0,1
db ' 000',0
dw 0,0
stom_3:
pushad
mov ebx,3
jmp stom_0
stom_6:
pushad
mov ebx,6
stom_0:
cmp ax,0
je zerokaesi
stom_0_0:
mov cx,10
mov dx,0
div cx
add dl,30h
mov [edi+ebx-1],dl
dec ebx
jnz stom_0
popad
ret
zerokaesi:
mov dl,160
mov [edi],dl
inc edi
dec ebx
cmp ebx,0
jne zerokaesi
popad
ret